<template>
	<el-dialog width="auto" v-model="visible" draggable>
		<div class="w-[370px] h-[700px] shadow rounded-lg">
			<Announcement :key="annId" v-if="annId" :id="annId" />
		</div>
	</el-dialog>
</template>

<script setup lang="ts" name="webForm">
import Announcement from '@/views/mobile/announcementDetail.vue';
const visible = ref(false);
const annId = ref('');

// 打开弹窗
const openDialog = (id: string) => {
	annId.value = id;
	visible.value = true;
};

// 暴露变量
defineExpose({
	openDialog,
});
</script>
